/*
 *  Prefs.h: Preferences of Gomoku.app
 *
 *  Copyright (c) 2004 Adam Nohejl <adam.nohejl@kppm.cz>
 *
 *  Author: Adam Nohejl
 *  Date: 2004-03-13 - 2004-04-08
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#import <Cocoa/Cocoa.h>
#import "game_type.h"

@class Controller;

@interface Prefs : NSObject
{
	int		boardSize;
	int		diffLevel;
	int		firstTurn;
	int		gameType; // Li Wei Man
	int		boardZoom;
	int		boardTheme;
	BOOL	sounds;
	int			changeFieldBlinkPhase;
	BOOL		changeFieldBlinks;
	NSTimer*	changeFieldBlinkTimer;

    IBOutlet NSPopUpButton*		firstTurnPopUp;
	IBOutlet NSPopUpButton*		gameTypePopUp;
    IBOutlet NSPopUpButton*		levelPopUp;
    IBOutlet NSWindow*			prefsWin;
    IBOutlet NSSlider*			sizeSlider;
    IBOutlet NSPopUpButton*		soundsPopUp;
    IBOutlet NSPopUpButton*		themePopUp;
    IBOutlet NSSlider*			zoomSlider;
    IBOutlet Controller*		controller;
	IBOutlet NSTextField*		changeField;
}
- (int)	boardSize;
- (int)	diffLevel;
- (int)	firstTurn;
- (int) gameType;
- (int)	boardZoom;
- (int)	boardTheme;
- (BOOL)sounds;
- (IBAction)setFirstTurn:(id)sender;
- (IBAction)setGameType:(id)sender; // by Li Wei Nan
- (IBAction)setLevel:(id)sender;
- (IBAction)setSize:(id)sender;
- (IBAction)setSounds:(id)sender;
- (IBAction)setTheme:(id)sender;
- (IBAction)setZoom:(id)sender;
- (IBAction)showWin:(id)sender;
/*- (BOOL)winIsKey;*/

- (void)setUp;

- (void)changeFieldBlink;
- (void)changeFieldBlinkUpdate:(NSTimer*)timer;
@end
